body {
  font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC',
    'WenQuanYi Micro Hei', sans-serif;
  background-color: #fff;
  word-wrap: break-word;
  line-height: 1.15;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
p {
  margin: 0;
}

* {
  -webkit-overflow-scrolling: touch;
}

// 滚动条美化 -----------------------------------

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #777;
}

// 全局默认类 -----------------------------------

#root {
  .fill;
  font-size: 18px;
  overflow: hidden;
}

.fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.column {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.box {
  .column;
  & > :not(.box-fill) {
    flex-shrink: 0;
  }
  & > .box-fill {
    .column;
    flex: 1;
    position: relative;
  }
}

.page {
  .fill;
  .box;
}

.transition {
  transition: all 0.3s;
}

.action(@c) {
  color: fade(@c, 70%);
  &:hover {
    color: @c;
  }
}

.details {
  .action(#00c800);
}
.edit {
  .action(#40a9ff);
}
.delete {
  .action(#f81d22);
}
